<script src="https://cdn.bootcss.com/echarts/4.2.0-rc.2/echarts.min.js"></script>
<div id="main" style="width: 600px;height:400px;"></div>
<script type="text/javascript">
        // 基于准备好的dom，初始化echarts实例
        var myChart = echarts.init(document.getElementById('main'));

        var date = ['{:implode("','",$date)}'];
        var num = [{:implode(',',$num)}];

       option = {
    xAxis: {
        type: 'category',
        data: date
    },
    yAxis: {
        type: 'value'
    },
    series: [{
        data: num,
        type: 'bar'
    }]
};


        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);
    </script>